Read input

The Read input part is used to read microcontroller input values into a variable. When this part gains control, the relevant data is read from the microcontroller and stored in the named variable.

Click on the underlined variable name on the front of the part to edit it.

Choose which input you wish to read from the drop-down list, either "Digital inputs" or a specific Analogue input pin, described below.

Digital inputs:
The value assigned to the variable will be the decimal version of the binary inputs. For instance, if inputs 1, 4, and 5 of inputs 0 - 7 are on, the binary number produced is 00110010. This has the decimal value: 21 + 24 + 25 = 50, so the value 50 will be assigned to the variable.

Analogue input:
This is the value on your chosen analogue input. The value assigned to the variable is in the range 0-255 and is calculated as follows:

See also: